<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jQuery.js"></script>
    <script>
        //组合选择器
        $(function(){
            //包含选择器（后代选择器）
        //    $("b p").css("color","red");
        //子元素选择器
           $("b > p").css("color","red")
        })
    </script>
</head>
<body>
    <b>
        黑黑
        <p>
            ha
        </p>
        <div>
            <p>
                hehe
            </p>
        </div>
    </b>
</body>
</html>